package com.bykj.property.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bykj.property.controller.vo.request.SechandRoomPageRequest;
import com.bykj.property.model.SechandRoom;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

/**
* <p>
    * 二手房信息表 Mapper 接口
    * </p>
*
* @author liangyiming
* @since 2019-07-30
*/
public interface SechandRoomMapper extends BaseMapper<SechandRoom> {

    @Select("select  * from sechand_room ")
                @Results({ @Result(property = "pmVillage",column = "pm_village_id",one = @One(select = "com.bykj.property.mapper.PmVillageMapper.selectById"))
                ,@Result(property = "dictionary",column = "dictionary_id",one = @One(select = "com.bykj.property.mapper.DictionaryMapper.selectById"))
    })
    Page<SechandRoom> queryPage(SechandRoomPageRequest pageRequest);

}